﻿using Ny.Common;
using System;
using System.ComponentModel.DataAnnotations;

namespace Ny.Ci.Core.Common
{
    public class AttachmentInfo : MayBaseEntity
    {
        /// <summary>
        /// 附件标题
        /// </summary>
        public virtual string Title { set; get; }
        /// <summary>
        /// 附件名称
        /// </summary>
        [Required]
        public virtual string Name { set; get; }
        /// <summary>
        /// 附件地址
        /// </summary>
        [Required]
        public virtual string Path { set; get; }
        /// <summary>
        /// 附件地址扩展
        /// </summary>
        public virtual string PathEx { set; get; }
        /// <summary>
        /// 附件大小
        /// </summary>
        public virtual string Size { set; get; }
        /// <summary>
        /// 关联Id
        /// </summary>
        [Required]
        public virtual Guid SubjectId { set; get; }
    }
}
